import Vue from "vue";
import router from "./router";
import store from "./store/";
import App from "./App.vue";
import VueRouter from 'vue-router'
import VueResource from 'vue-resource'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import VueCookies from 'vue-cookies'
import global_ from './config/global'
import echarts from 'echarts'
import print from 'vue-print-nb'

Vue.use(VueCookies)
Vue.use(VueRouter)
Vue.use(VueResource)
Vue.use(ElementUI)
Vue.use(global_);
Vue.use(print)

Vue.prototype.$echarts = echarts

// 接口
import axios from "./api/axios";
window.axios = axios;

if (process.env.NODE_ENV == "development") {
  console.log("development mode");
  //开启debug模式
  Vue.config.debug = true;
}

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app");

